// 自动生成模板UmsMemberStatisticsInfo
package biz

import "github.com/go-kratos/kratos/v2/log"

// umsMemberStatisticsInfo表 结构体  UmsMemberStatisticsInfo
type UmsMemberStatisticsInfo struct {
	Id                  *int     `json:"id" form:"id" gorm:"primarykey;comment:id;column:id;size:19;"`                                                  //id
	MemberId            *int     `json:"memberId" form:"memberId" gorm:"comment:会员id;column:member_id;size:19;"`                                        //会员id
	ConsumeAmount       *float64 `json:"consumeAmount" form:"consumeAmount" gorm:"comment:累计消费金额;column:consume_amount;size:18;"`                       //累计消费金额
	CouponAmount        *float64 `json:"couponAmount" form:"couponAmount" gorm:"comment:累计优惠金额;column:coupon_amount;size:18;"`                          //累计优惠金额
	OrderCount          *int     `json:"orderCount" form:"orderCount" gorm:"comment:订单数量;column:order_count;size:10;"`                                  //订单数量
	CouponCount         *int     `json:"couponCount" form:"couponCount" gorm:"comment:优惠券数量;column:coupon_count;size:10;"`                              //优惠券数量
	CommentCount        *int     `json:"commentCount" form:"commentCount" gorm:"comment:评价数;column:comment_count;size:10;"`                             //评价数
	ReturnOrderCount    *int     `json:"returnOrderCount" form:"returnOrderCount" gorm:"comment:退货数量;column:return_order_count;size:10;"`               //退货数量
	LoginCount          *int     `json:"loginCount" form:"loginCount" gorm:"comment:登录次数;column:login_count;size:10;"`                                  //登录次数
	AttendCount         *int     `json:"attendCount" form:"attendCount" gorm:"comment:关注数量;column:attend_count;size:10;"`                               //关注数量
	FansCount           *int     `json:"fansCount" form:"fansCount" gorm:"comment:粉丝数量;column:fans_count;size:10;"`                                     //粉丝数量
	CollectProductCount *int     `json:"collectProductCount" form:"collectProductCount" gorm:"comment:收藏的商品数量;column:collect_product_count;size:10;"`   //收藏的商品数量
	CollectSubjectCount *int     `json:"collectSubjectCount" form:"collectSubjectCount" gorm:"comment:收藏的专题活动数量;column:collect_subject_count;size:10;"` //收藏的专题活动数量
	CollectCommentCount *int     `json:"collectCommentCount" form:"collectCommentCount" gorm:"comment:收藏的评论数量;column:collect_comment_count;size:10;"`   //收藏的评论数量
	InviteFriendCount   *int     `json:"inviteFriendCount" form:"inviteFriendCount" gorm:"comment:邀请的朋友数量;column:invite_friend_count;size:10;"`         //邀请的朋友数量
}

// TableName umsMemberStatisticsInfo表 UmsMemberStatisticsInfo自定义表名 ums_member_statistics_info
func (UmsMemberStatisticsInfo) TableName() string {
	return "ums_member_statistics_info"
}

type UmsMemberStatisticsInfoRepo interface {
}

type UmsMemberStatisticsInfoUsecase struct {
	repo UmsMemberStatisticsInfoRepo
	log  *log.Helper
}

func NewUmsMemberStatisticsInfoUsecase(repo GreeterRepo, logger log.Logger) *UmsMemberStatisticsInfoUsecase {
	return &UmsMemberStatisticsInfoUsecase{repo: repo, log: log.NewHelper(logger)}
}
